﻿'Imports Abyx.SVCMS.Library

'Child window interface for ControlAutomaticRefresh framework
Public Interface ICarfChildWindow
    Inherits Windows.Forms.IWin32Window

    Sub ProcessRefreshRelatedDataControls(sender As Form, _
                                   DataTypeCategory As RelatedControlDataCategoriesEnum, _
                                   Optional DataItem As Object = Nothing, _
                                   Optional ActionOnDataItem As FormActionOnDataEnum = FormActionOnDataEnum.None)
    Sub OrderRefreshRelatedDataControls(Optional DataItem As Object = Nothing, _
                                   Optional ActionOnDataItem As FormActionOnDataEnum = FormActionOnDataEnum.None)
    Function GetFormInstanceForDataObject(DataObject As Object) As Form
    Sub InitializeThisFormAndControlSettings(Optional OrderUpdateToFile As Boolean = False)

End Interface

'Child window interface for ControlAutomaticRefresh framework + Data editing framework
Public Interface ICarfDataEditingChildWindow
    Inherits Windows.Forms.IWin32Window

    Sub Refresh_ControlsWithDataObject()
    Sub Refresh_DataObjectWithControls()

    Sub ProcessRefreshRelatedDataControls(sender As Form, _
                                   DataTypeCategory As RelatedControlDataCategoriesEnum, _
                                   Optional DataItem As Object = Nothing, _
                                   Optional ActionOnDataItem As FormActionOnDataEnum = FormActionOnDataEnum.None)
    Sub OrderRefreshRelatedDataControls(Optional DataItem As Object = Nothing, _
                                   Optional ActionOnDataItem As FormActionOnDataEnum = FormActionOnDataEnum.None)
    Function GetFormInstanceForDataObject(DataObject As Object) As Form
    Sub InitializeThisFormAndControlSettings(Optional OrderUpdateToFile As Boolean = False)

End Interface
